class Singleton{
    private static Singleton instance = new Singleton();
    //防止在类外面调用构造方法,也就禁止了调用者再其他地方创建实例的机会
    private Singleton(){}

    public static Singleton getInstance(){
        return instance;
    }
}


public class Test {

}
